package com.google.code.jaail.networks;

import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;

public class InetSocketAddressHelper {
    private final String address;

    public InetSocketAddressHelper(final String address) {
        this.address = address;
    }

    InetSocketAddress lookupInetSocketAddress(int port) throws UnknownHostException {
        return new InetSocketAddress(InetAddress.getByName(address), port);
    }
}